package com.panshi.api.api;

import com.panshi.api.bean.AnswerHDBean;
import com.panshi.api.util.PageSizeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/9 0009 下午 10:21
 */
@FeignClient("XiaoWangYo")
@Api("回答对外接口")
public interface AnswerHDPort {

    @PostMapping("/addAnswerHDInfo")
    @ResponseBody
    @ApiModelProperty("新增回答数据")
    String addAnswerHDInfo(@RequestBody AnswerHDBean answerHDBean);

    @PostMapping("/deleteAnswerHDInfo/{id}")
    @ResponseBody
    @ApiModelProperty("删除回答数据")
    String deleteAnswerHDInfo (@PathVariable int id);

    @PostMapping("/queryAssignHDQuestionAnswerInfo")
    @ResponseBody
    @ApiModelProperty("查询指定问答下回答 and 指定用户回答数据")
    PageSizeVO queryAssignHDQuestionAnswerInfo(@RequestBody PageSizeVO pageSizeHDBean);

    @PostMapping("/updateAnswerHDInfo")
    @ResponseBody
    @ApiModelProperty("修改回答")
    String updateAnswerHDInfo(@RequestBody AnswerHDBean answerHDBean);
}
